import { CommonEntity } from '@/common/common-entity';
import { ApiProperty } from '@nestjs/swagger';

export class CreateAttachementDto extends CommonEntity {
  @ApiProperty({ description: '附件原始名称' })
  name: string;

  @ApiProperty({ description: '附件上传后的url' })
  url: string | null;

  @ApiProperty({ description: '上传后的附件名称' })
  filename: string;

  @ApiProperty({ description: '附件大小' })
  size: number;

  @ApiProperty({ description: '附件类型' })
  mimetype: string | null;
}
